package cloud.lysky.java.on.design_pattern.strategy;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 10:15
 **/

//校验字符串是否全是小写
public class IsAllLowerCase implements ValidationStrategy{

    @Override
    public boolean execute(String s) {
        return s.matches("[a-z]+");
    }
}